package com.miao.io;

import java.io.InputStream;

/**
 * @author 喵瑞恒
 * @date 2023/09/13 20:16
 **/
public class Resources {

    /**
     * 根据配置文件路径，加载配置文件成字节输入流，存到内存中
     *
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
